$OpenBSD: patch-qcadlib_src_engine_rs_system_cpp,v 1.2 2010/06/07 20:08:09 kili Exp $
--- qcadlib/src/engine/rs_system.cpp.orig	Tue Nov 22 12:52:36 2005
+++ qcadlib/src/engine/rs_system.cpp	Sun Jun  6 14:14:48 2010
@@ -270,15 +270,9 @@ RS_StringList RS_System::getFileList(const RS_String& 
 
     /*RS_StringList dirList;
 
-    // Redhat style:
-    dirList.append("/usr/share/" + appDirName);
+    // OpenBSD style:
+    dirList.append("${LOCALBASE}/share/" + appDirName);
 
-    // SuSE style:
-    dirList.append("/usr/X11R6/" + appDirName);
-
-    dirList.append("/usr/X11R6/share/" + appDirName);
-    dirList.append(getHomeDir() + "/." + appDirName);
-
     // Local directory:
     dirList.append(".");
     //dirList.append(getCurrentDir());
@@ -333,13 +327,8 @@ RS_StringList RS_System::getDirectoryList(const RS_Str
             dirList.append(appDir + "/" + subDirectory);
         }
 
-        // Redhat style:
-        dirList.append("/usr/share/" + appDirName + "/" + subDirectory);
-
-        // SuSE style:
-        dirList.append("/usr/X11R6/" + appDirName + "/" + subDirectory);
-
-        dirList.append("/usr/X11R6/share/" + appDirName + "/" + subDirectory);
+        // OpenBSD style:
+        dirList.append("${LOCALBASE}/share/" + appDirName + "/" + subDirectory);
         dirList.append(getHomeDir() + "/." + appDirName + "/" + subDirectory);
 
 #ifdef __APPLE__
